package hx.com;

import hx.com.utils.CardUtils;

import javax.xml.crypto.Data;
import java.util.Date;
import java.util.Random;

public class Test {


    public static void main(String[] args) {
      /*  //1
        String str1 = "139";
        String str2;
        String str;
        for (int i = 1; i < 10; i++) {
            int a;
            a = new Random().nextInt(9);
            str2 = String.valueOf(a);
            str = str1 + str2;
            int b;
            b = Integer.valueOf(str);
            System.out.println(i + "、" + b);
        }*/

        //2

      /* long a =System.currentTimeMillis();
        System.out.println(a);
        String b=String.valueOf(a);
        String c=b.substring(3,12);
        String d="139";
        String e=d+c;
        int x=Integer.valueOf(e);
        System.out.println(x);*/

        //createCardNumber();




    }

    private static void createCardNumber() {
        String numbers[]=new String[9];
        Random random=new Random();
        for(int i=1;i<9;i++){
            String start="139";
            for(int j=0;j<8;j++){
                String endNumbers=String.valueOf(random.nextInt(9));
                start=start+endNumbers;
            }
            numbers[i]=start;
            System.out.println(i+"、"+start);
        }
    }
}

